import {
  request
} from "./request.js";

// 获取机构列表
export function getOrgList(data) {
  return request(
    "/api/ServiceOrganization",
    "get",
    data
  );
}

// 获取头条列表
export function getHeadlinesList(data,isCustomLoading) {
  return request(
    "/api/OperationNews",
    "get",
    data,
    isCustomLoading
  );
}

// 养老头条详情
export function getHeadlinesDetail(id) {
  return request(
    `/api/OperationNews/${id}`,
    "get"
  );
}

// 获取服务列表
export function getServiceList(data,isCustomLoading) {
  return request(
    "/api/ServiceProject",
    "get",
    data,
    isCustomLoading
  );
}

// 获取我收藏的服务列表
export function getMyServiceList(data,isCustomLoading) {
  return request(
    "/api/Collectservice",
    "get",
    data,
    isCustomLoading
  );
}